# This is a sample Python script.

# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.

'''
def print_hi(name):
    # Use a breakpoint in the code line below to debug your script.
    print(f'Hi, {name}')  # Press Ctrl+F8 to toggle the breakpoint.


# Press the green button in the gutter to run the script.
if __name__ == '__main__':
    print_hi('PyCharm')

# See PyCharm help at https://www.jetbrains.com/help/pycharm/
'''

import numpy as np
loaded_data =np.load(r'D:\计算机\bin\3103014787\FileRecv\数据分析实验数据 (1)\第3章\save_arr.npz,allow_pickle=true')
print('读取的数组为:',loaded_data)

'''
import numpy as np
import matplotlib.pyplot as plt
data=np.arange(0,1.1,0.01)
plt.title('lines')
plt.xlabel('x')
plt.ylabel('y')
plt.xlim((0,1))
plt.ylim((0,1))
plt.xticks([0,0.2,0.4,0.6,0.8,1])
plt.yticks([0,0.2,0.4,0.6,0.8,1])
plt.plot(data,data**2)
plt.plot(data,data**4)
plt.legend(['y=x^2','y=x^4'])
plt.savefig('D:/计算机/bin/3103014787/FileRecv/数据分析实验数据 (1)/第3章.png')
plt.show()
'''
'''
import numpy as np
A =np.load('D:/计算机/bin/3103014787/FileRecv/数据分析实验数据 (1)/第3章.npz')
print(A)
'''
'''
x =np.linspace(0,4*np.pi)
y =np.sin(x)
plt.plot(x,y,label="$sin(x)$")
plt.title('sin')
plt.savefig('D:/计算机/bin/3103014787/FileRecv/数据分析实验数据 (1)/第3章.svg' )
plt.show()
'''
'''
plt.rcParams['lines.linestyle'] ='-.'
plt.rcParams['lines.linewidth'] =3
plt.plot(x,y,label="$sin(x)$")
plt.title('sin')
plt.savefig('D:/计算机/bin/3103014787/FileRecv/数据分析实验数据 (1)/第3章.svg')
plt.show()
'''